package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-25
 * Time: 下午2:40
 * To change this template use File | Settings | File Templates.
 */

/**
 * 套系表  需要一个和商品关联的 中间表
 */
@Entity
@Table(name = "Goods_Package")
public class Goods_Package {
    @Id
    @GenericGenerator(name = "Goods_PackageGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "Goods_PackageGenerator") //使用uuid的生成策略
    private Integer id;

    private String packageName;//套系名称
    private Integer photoCount;//相片数据 入册
    private Integer cdCount;//相片数据      入盘
    private Integer boxCount;//相册数量
    private Double packageBuyPrice;  //商品买入价格
    private Double packageSellPrice;  //商品卖出价格

    private Integer inputId;//录入人
    private String inputName;//录入人

    private Integer packageStatus;  //是否启用         0启用，1 不启动
    private String packageDescribe;  //描述
    private Date createDate;  //创建日期

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public Integer getPhotoCount() {
        return photoCount;
    }

    public void setPhotoCount(Integer photoCount) {
        this.photoCount = photoCount;
    }

    public Integer getCdCount() {
        return cdCount;
    }

    public void setCdCount(Integer cdCount) {
        this.cdCount = cdCount;
    }

    public Integer getBoxCount() {
        return boxCount;
    }

    public void setBoxCount(Integer boxCount) {
        this.boxCount = boxCount;
    }

    public Double getPackageBuyPrice() {
        return packageBuyPrice;
    }

    public void setPackageBuyPrice(Double packageBuyPrice) {
        this.packageBuyPrice = packageBuyPrice;
    }

    public Double getPackageSellPrice() {
        return packageSellPrice;
    }

    public void setPackageSellPrice(Double packageSellPrice) {
        this.packageSellPrice = packageSellPrice;
    }

    public Integer getInputId() {
        return inputId;
    }

    public void setInputId(Integer inputId) {
        this.inputId = inputId;
    }

    public String getInputName() {
        return inputName;
    }

    public void setInputName(String inputName) {
        this.inputName = inputName;
    }

    public Integer getPackageStatus() {
        return packageStatus;
    }

    public void setPackageStatus(Integer packageStatus) {
        this.packageStatus = packageStatus;
    }

    public String getPackageDescribe() {
        return packageDescribe;
    }

    public void setPackageDescribe(String packageDescribe) {
        this.packageDescribe = packageDescribe;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
